package com.example.flashsales.service;

import com.example.flashsales.entity.vo.StoreCostRecordVo;

import java.util.Date;
import java.util.List;

public interface StoreCostRecordService {
    // 添加一条纪录
    boolean addCostRecord(long storeId,double money,int state);

    //查看所有纪录
    List<StoreCostRecordVo> viewAllStoreCostRecord(long storeId,int page,int num);

    //按类型查看纪录时间
    List<StoreCostRecordVo> viewStoreRecordByTimeAndState(long storeId, Date qDate,Date hDate,int page,int num,int state);


    //查看总条数
    long viewCount(long storeId);

    //按时间类型查看条数
    long viewCountByTime(long id,Date qDate,Date hDate,int state);
}
